#ifndef __G_BOX
#define __G_BOX

#include "GWidget.h"

typedef enum _GOrientation GOrientation;
enum _GOrientation
{
        G_ORIENTATION_HORIZONTAL,
        G_ORIENTATION_VERTICAL,
};

typedef struct _GBox GBox;
#define G_BOX(any) ((GBox *)(any))

extern GWidget *g_box_new(GOrientation orientation, bool is_homogeneous);

/**
 * @brief 将小部件追加到 GBox 末尾
 */
extern void g_box_append(GBox *self, GWidget *widget);

/**
 * @brief GBox 的背景颜色，默认为白色
 * @param self GBox 对象
 * @param color RGB565 颜色
 */
extern void g_box_set_background_color(GBox *self, uint16_t color);

#endif
